<template>
  <div class="main">
    主页
    <button @click="login">登录</button>
  </div>
</template>
<script>
import { baseURL } from '@/utils/request.js'
import { phoneLogin } from '@/api/login.js'
export default {
  setup () {
    console.log(baseURL)
    const login = async () => {
      const res = await phoneLogin({
        mobile: '18978695928',
        type: 'register'
      })
      console.log(res)
    }
    return { login }
  }
}
</script>
<style lang="less">
    .main{
      color:@xtxColor;
      .hoverShadow ()
    }
</style>
